<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Classify Management</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/type.css" />
<script type="text/javascript" src="__PUBLIC__/js/admin.js"></script>

<script>
	$(function(){
		$("#statussel").change(function(){
			window.location.href = "__ACTION__/OrderStatus/" + $(this).val();
		});
	});
</script>


</head>

<body>
<br>
<br>
<table class="classify_table1">
	<tr>
		<td><span class="classify_table_title">订单管理</span> <span
			class="classify_table_button">
		<form method="post"><input type="text" placeholder="请输入订单编号"
			name="search" /> <input type="submit" value="查询"></form>
		</span></td>
	</tr>
	<tr>
		<td>
		<table class="classify_table2">
			<tr>
				<td class="classify_thead_title">订单号</td>
				<td class="classify_thead_title">顾客编号</td>
				<td class="classify_thead_title">状态筛选 <select name="OrderStatus" id="statussel"
					class="goods_select">
					<option value="0" <eq name="status" value="0">selected</eq>>待付款</option>
					<option value="1" <eq name="status" value="1">selected</eq>>待发货</option>
					<option value="2"<eq name="status" value="2">selected</eq>>待收货</option>
					<option value="3"<eq name="status" value="3">selected</eq>>待评价</option>
					<option value="4"<eq name="status" value="4">selected</eq>>已完成</option>
				</select></td>
				<td class="classify_thead_title">总金额</td>
				<td class="classify_thead_title">下单日期</td>
				<td class="classify_thead_title ">查看</td>
			</tr>
			
			<foreach name="data" item="v">
			<tr>
				<td class="classify_tbody">{$v.OrderId}</td>
				<td class="classify_tbody">{$v.UserId}</td>
				<td class="classify_tbody">
					<eq name="v.OrderStatus" value="0">待付款</eq>
					<eq name="v.OrderStatus" value="1">待发货</eq>
					<eq name="v.OrderStatus" value="2">待收货</eq>
					<eq name="v.OrderStatus" value="3">待评价</eq>
					<eq name="v.OrderStatus" value="4">已完成</eq>
				</td>
				<td class="classify_tbody">{$v.TotalMoney}</td>
				<td class="classify_tbody">{$v.BuyDate}</td>
				<td>
				<button><neq name="v.OrderStatus" value="1"><a href="__CONTROLLER__/show/OrderId/<?php echo
				$v['OrderId'];?>">查看</a></neq>
				<eq name="v.OrderStatus" value="1"><a href="__CONTROLLER__/sendGoods/OrderId/<?php echo
				$v['OrderId'];?>">发货</a></eq>
				</button>
				</td>
			</tr>
			</foreach>


		</table>
		</td>
	</tr>
</table>
</body>
</html>